package com.skywolf.chem.article.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.skywolf.chem.common.sysconfig.pojo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 帖子
 * </p>
 *
 * @author 
 * @since 2020-06-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Article对象", description="帖子")
public class Article extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容正文")
    private String content;

    @ApiModelProperty(value = "摘要")
    private String subTitle;

    @ApiModelProperty(value = "图片封面，多个封面逗号分隔")
    private String coverUrl;

    @ApiModelProperty(value = "类型(1:视频梯子 2:文本帖子 3:图文帖子")
    private Integer artType;

    @ApiModelProperty(value = "状态(0: 初稿  1:初稿审批通过   2:复审通过(等待发布)   3:发布  4:审批不通过)")
    private Integer artStatus;

    @ApiModelProperty(value = "审批拒绝意见")
    private String statusDesc;

    @ApiModelProperty(value = "最新审批人uid")
    private Long appoveUserId;

    @ApiModelProperty(value = "创建人编号")
    private Long createUserId;

    @ApiModelProperty(value = "收藏基数")
    private Integer baseCollectionCount;

    @ApiModelProperty(value = "收藏数")
    private Integer collectionCount;

    @ApiModelProperty(value = "点赞数")
    private Integer pariseCount;

    @ApiModelProperty(value = "点赞基数")
    private Integer basePariseCount;

    @ApiModelProperty(value = "浏览基数")
    private Double baseViewCount;

    @ApiModelProperty(value = "浏览次数")
    private Integer viewCount;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "作者")
    private String reporter;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime addTime;

    @ApiModelProperty(value = "帖子所在栏目id")
    @TableField(exist = false)
    private Long colId;

    @ApiModelProperty(value = "帖子所在栏目名")
    @TableField(exist = false)
    private String colName;

    @ApiModelProperty(value = "0-正常 1-热门 2-置顶")
    @TableField(exist = false)
    private Integer topping;

    @ApiModelProperty(value = "-1:不上 0-帖子位 1-轮播图位 2-视频位")
    @TableField(exist = false)
    private Integer pcfirst;

    @ApiModelProperty(value = "0:不上 1-上栏目封面")
    @TableField(exist = false)
    private Integer pcCover;

    @ApiModelProperty(value = "0-未收藏 1-收藏")
    @TableField(exist = false)
    private Integer collection;

    @ApiModelProperty(value = "推荐新闻")
    @TableField(exist = false)
    private List<Article> recommendNews;

    @ApiModelProperty(value = "分享封面")
    @TableField(exist = false)
    private String shareImg;

}
